﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace AliCMS.CollectModule
{
    public interface IInstanceConfig : IObject
    {
        Dictionary<string, string> GetBasicSettings();
        void SetBasicSettings(Dictionary<string, string> value);

        void Save();

        void CheckAndContinue(DataRow task);
    }
    public interface IRule : IDbObject
    {
        void Recycle(int id);
        void Recover(int id);

        void StartExecute(int id);
        void StartExecute(DataRow task);
        void StopExecute(int id);
        bool IsRunning(int id);

        //void SetExport(int id, string export);
        void Export(int id, int recordID);
    }
    namespace Rule
    {
        public interface IResult : IObject
        {
            void Delete(int ruleID, int id);
            DataTable List(int page, int pageSize, string condition, string sort);
            int GetRecordCount(string condition);

            void Replace(int ruleID, string property, string from, string to);
        }
    }
}
